﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Table("att_schedule")]
    public class AttSchedule
    {
        /// <summary>
        /// ID，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 上午上班
        /// </summary>
        [Column("morning_on")]
        public TimeSpan MorningON { get; set; }

        /// <summary>
        /// 上午下班
        /// </summary>
        [Column("morning_off")]
        public TimeSpan MorningOFF { get; set; }

        /// <summary>
        /// 中午上班
        /// </summary>
        [Column("noon_on")]
        public TimeSpan NoonON { get; set; }

        /// <summary>
        /// 中午下班
        /// </summary>
        [Column("noon_off")]
        public TimeSpan NoonOFF { get; set; }

        /// <summary>
        /// 加班开始时间
        /// </summary>
        [Column("ot_on")]
        public TimeSpan OverTimeON { get; set; }
    }
}
